import { createStore } from 'vuex'
import user from '@/store/user'
import createPersistedstate from 'vuex-persistedstate'

export default createStore({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user
  },
  plugins: [
    createPersistedstate({
      //数据存储方式是sessionStorage
      storage: sessionStorage,
      paths: ["count", "user"]
    })
  ]
})
